﻿

namespace NetCourse.Framework.Security
{
    public interface IUserStore : ISingletonDependency
    {
        (bool success, string msg) RemoveUser(string UserName);
        (bool success, IUserPrincipal? user) GetUser(string UserName, string pwd);
        (bool success, string msg) AddUser(IUserPrincipal? user);
        (bool success, List<IUserPrincipal>, string msg,int pageNum) GetUserList(int pageSize, int pageIndex);
        int GetPageNum(int pageSize);

        (bool success, IUserPrincipal? user) FindUserById(Guid id);
    }
}
